<template>
  <div class="container">
    <div class="content-article">
      <ArticleList></ArticleList>
      <ArticleRight></ArticleRight>
    </div>
  </div>
</template>

<script>
import VueMarkdown from "vue-markdown";
import ArticleList from "./ArticleList.vue";

import ArticleRight from "./ArticleRight";
import Bus from "@/assets/event-bus.js";
import "./main.less";
import "./main.less";
export default {
  name: "WeiXin",
  props: [],
  components: { VueMarkdown, ArticleList, ArticleRight },
  data() {
    return {
      articleList: [],
      showTips: false, //是否显示没有内容的提示
      showApp: false, //是否显示没有应用的提示
      articleLength: 1, //文章长度
      articleIndex: 0,
      articleObj: [
        {
          coverImage: "",
          title: "",
          content: "",
          tag: "",
          autor: "",
          times: ""
        }
      ],
      appArry: [],
      sorTagtList: [
        {
          checkable: true,
          tagClass: "tagClassCheck",
          text: "全部",
          value: "all"
        },
        {
          checkable: false,
          tagClass: "tagClass",
          text: "货返",
          value: "huofan"
        },
        {
          checkable: false,
          tagClass: "tagClass",
          text: "立返",
          value: "lifan"
        },
        {
          checkable: false,
          tagClass: "tagClass",
          text: "可用红包",
          value: "hongbao"
        },
        { checkable: false, tagClass: "tagClass", text: "其它", value: "other" }
      ]
    };
  }
};
</script>

<style lang="less" scoped>
.container {
  margin-right: auto;
  margin-left: auto;
  padding-right: 10px;
  padding-left: 10px;

  @media screen and (min-width: 576px) {
    width: 540px;
  }
  @media screen and (min-width: 768px) {
    width: 720px;
  }
  @media screen and (min-width: 992px) {
    width: 960px;
  }
  @media screen and (min-width: 1200px) {
    width: 1160px;
  }
  .row {
    margin-right: -10px;
    margin-left: -10px;
    .col {
      width: 100%;
      float: left;
      min-height: 1px;
      padding-right: 10px;
      padding-left: 10px;
      a {
        display: none;
        @media screen and (min-width: 992px) {
          display: block;
          float: left;
          margin-right: 15px;
          color: #adb5bd;
        }
      }
      span {
        @media screen and (min-width: 992px) {
          float: right;
        }
      }
    }
  }
  .row::after {
    display: block;
    clear: both;
    content: "";
  }
}
.content-article {
//   background-color: #fff;
//   height: 155px;
  @media screen and (min-width: 992px) {
    margin: 0 0 30px 0;
    padding: 0 0 30px 0;
    border-bottom: 1px solid #f1f3f5;
  }
}
.article-left {
  display: none;
  @media screen and (min-width: 992px) {
    position: relative;
    display: block;
    float: left;
    width: 192px;
    margin-right: -192px;
  }
  .page-img {
    cursor: pointer;
    text-decoration: none;
    color: #212529;
    background-color: transparent;
    display: block;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    img {
      width: 100%;
      height: auto;
      vertical-align: middle;
      border-style: none;
      height: 120px;
    }
  }
}
.article-right {
  width: 100%;
  @media screen and (min-width: 992px) {
    box-sizing: border-box;
    float: right;
  }
  .article-text {
    display: block;
    @media screen and (min-width: 992px) {
      margin-left: 212px;
    }
    .article-title {
      font-size: 18px;
      font-weight: 700;
      margin-bottom: 10px;
      a {
        cursor: pointer;
        text-decoration: none;
        color: #212529;
        background-color: transparent;
        touch-action: manipulation;
      }
    }
    .list-text {
      margin-bottom: 10px;
      color: #868e96;
      // min-height: 50px;
      max-height: 60px;
      overflow: hidden;
      @media screen and (min-width: 992px) {
        min-height: 50px;
      }
    }
    .list-meta {
      font-size: 12px;
      line-height: 14px;
      color: #868e96;
      .page-top {
        font-size: 12px;
        font-style: normal;
        line-height: 14px;
        display: block;
        float: left;
        width: 14px;
        height: 14px;
        margin-right: 4px;
        text-align: center;
        color: #fff;
        border-radius: 2px;
      }
      .bg-danger {
        background-color: #fa5252 !important;
      }
      .float-left {
        float: left !important;
      }
      .mr-small {
        margin-right: 10px !important;
      }
    }
    // .list-meta::after{
    //     display: block;
    // clear: both;
    // content: "";
    // }
  }
}
.article-right::after {
  display: block;
  clear: both;
  content: "";
}
.ad-content-left {
  float: left;
  width: 100%;
  min-height: 1px;
  padding-right: 10px;
  padding-left: 10px;
  @media screen and (min-width: 992px) {
    width: 640px;
  }
  @media screen and (min-width: 1200px) {
    width: 820px;
  }
  .content-box {
    // background-color: #fff;
    // @media screen and  (min-width: 992px) {
    margin-right: 0;
    margin-bottom: 20px;
    margin-left: 0;
    padding: 30px;
    min-height: 155px;
    background-color: #fff;

    // }
  }
}
.tagFault {
  padding: 5px;
  border-radius: 3px;
  border: none;
  cursor: pointer;
}
.tagClass {
  background: #f7f7f7;
}
.tagClassCheck {
  background: #2d8cf0;
  color: #fff;
}
.applist {
  margin-top: 10px;
}
.show-app {
  margin: 20px;
}
</style>
